luci-app-openwisp: improved schema for usability
authorFederico Capoano <[email protected]>
Wed, 1 Mar 2023 19:08:01 +0000 (16:08 -0300)
committerFederico Capoano <[email protected]>
Thu, 16 Mar 2023 21:48:40 +0000 (18:48 -0300)
commitbdf48c7112dcef1670f1f13e82a36e92933e91b7
treec02051c48e20f414b87d84aefd648b0ae5c7e219
parentcd8bea94e61fa72a0a2ba7bc54d7b2d7b7572519
luci-app-openwisp: improved schema for usability

Without these changes, saving the form of luci-app-openwisp without
doing any change generates a configuration which will not work in most cases.

In this patch I took care of providing the right settings to show the default values,
avoid saving default values and show the interface names properly.
With these changes it will be possible for a user to edit just 1 field without
introducing breaking changes.

Signed-off-by: Federico Capoano <[email protected]>
(cherry picked from commit 8727b1cbc8542e06b0b9db7e41366bbbe19d42f5)
applications/luci-app-openwisp/htdocs/luci-static/resources/view/openwisp.js